<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('date/picker/decade-panel/decade-panel-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div class=&quot;';
        var config1 = {};
        var params2 = [];
        params2.push('header');
        config1.params = params2;
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, config1, &quot;getBaseCssClasses&quot;, 0, 1, true, undefined);
        buffer += id0;
        buffer += '&quot;&gt;\r\n    &lt;a id=&quot;ks-date-picker-decade-panel-previous-century-btn-';
        var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 2, undefined, false);
        buffer += getExpressionUtil(id3, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('prev-century-btn');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;previousCenturyLabel&quot;, 0, 6, undefined, false);
        buffer += getExpressionUtil(id7, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n    &lt;div class=&quot;';
        var config9 = {};
        var params10 = [];
        params10.push('century');
        config9.params = params10;
        var id8 = getPropertyOrRunCommandUtil(engine, scopes, config9, &quot;getBaseCssClasses&quot;, 0, 9, true, undefined);
        buffer += id8;
        buffer += '&quot;\r\n         id=&quot;ks-date-picker-decade-panel-century-';
        var id11 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 10, undefined, false);
        buffer += getExpressionUtil(id11, true);
        buffer += '&quot;&gt;\r\n                ';
        var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;startYear&quot;, 0, 11, undefined, false);
        buffer += getExpressionUtil(id12, true);
        buffer += '-';
        var id13 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;endYear&quot;, 0, 11, undefined, false);
        buffer += getExpressionUtil(id13, true);
        buffer += '\r\n    &lt;/div&gt;\r\n    &lt;a id=&quot;ks-date-picker-decade-panel-next-century-btn-';
        var id14 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 13, undefined, false);
        buffer += getExpressionUtil(id14, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config16 = {};
        var params17 = [];
        params17.push('next-century-btn');
        config16.params = params17;
        var id15 = getPropertyOrRunCommandUtil(engine, scopes, config16, &quot;getBaseCssClasses&quot;, 0, 14, true, undefined);
        buffer += id15;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id18 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;nextCenturyLabel&quot;, 0, 17, undefined, false);
        buffer += getExpressionUtil(id18, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n&lt;/div&gt;\r\n&lt;div class=&quot;';
        var config20 = {};
        var params21 = [];
        params21.push('body');
        config20.params = params21;
        var id19 = getPropertyOrRunCommandUtil(engine, scopes, config20, &quot;getBaseCssClasses&quot;, 0, 21, true, undefined);
        buffer += id19;
        buffer += '&quot;&gt;\r\n    &lt;table class=&quot;';
        var config23 = {};
        var params24 = [];
        params24.push('table');
        config23.params = params24;
        var id22 = getPropertyOrRunCommandUtil(engine, scopes, config23, &quot;getBaseCssClasses&quot;, 0, 22, true, undefined);
        buffer += id22;
        buffer += '&quot; cellspacing=&quot;0&quot; role=&quot;grid&quot;&gt;\r\n        &lt;tbody id=&quot;ks-date-picker-decade-panel-tbody-';
        var id25 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 23, undefined, false);
        buffer += getExpressionUtil(id25, true);
        buffer += '&quot;&gt;\r\n        ';
        var config27 = {};
        var params28 = [];
        params28.push('date/picker/decade-panel/decades-xtpl');
        config27.params = params28;
        var id26 = getPropertyOrRunCommandUtil(engine, scopes, config27, &quot;include&quot;, 0, 24, false, undefined);
        buffer += id26;
        buffer += '\r\n        &lt;/tbody&gt;\r\n    &lt;/table&gt;\r\n&lt;/div&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
